﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using FreeSql.DataAnnotations;
using Newtonsoft.Json;

namespace lruc.Model
{
    [Table(Name = "project")]
    public class Project
    {
        [Column(Name = "id", IsIdentity = true, IsPrimary = true)]
        [JsonProperty("id")]
        public long Id { get; set; }

        [Column(Name = "identifier")]
        [Description("方案编号")]
        [JsonProperty("identifier")]
        public string Identifier { get; set; }

        [Column(Name = "uuid")]
        [Description("唯一标识ID")]
        [JsonProperty("uuid")]
        public string Uuid { get; set; }

        [Column(Name = "name")]
        [Description("方案名称")]
        [JsonProperty("name")]
        public string Name { get; set; }

        [Column(Name = "realname")]
        [Description("创建人")]
        [JsonProperty("realname")]
        public string Realname { get; set; }

        [Column(Name = "mttr")]
        [JsonProperty("mttr")]
        public string Mttr { get; set; }

        [Column(Name = "lcsc")]
        [JsonProperty("lcsc")]
        public string Lcsc { get; set; }

        [Column(Name = "dxfxjg")]
        [Description("定性分析统计结果")]
        [JsonProperty("dxfxjg")]
        public string Dxfxjg { get; set; }

        [Column(Name = "dxfxjson", StringLength = -1)]
        [Description("定性分析Json记录")]
        [JsonProperty("dxfxjson")]
        public string DxfxJson { get; set; }

        [Column(Name = "timefxjson", StringLength = -1)]
        [JsonProperty("timefxjson")]
        public string TimefxJson { get; set; }

        [Column(Name = "costfxjson", StringLength = -1)]
        [JsonProperty("costfxjson")]
        public string CostfxJson { get; set; }

        [Column(Name = "modelzrjson", StringLength = -1)]
        [JsonProperty("modelzrjson")]
        public string ModelzrJson { get; set; }

        [Column(Name = "schemeghjson", StringLength = -1)]
        [JsonProperty("schemeghjson")]
        public string SchemeghJson { get; set; }

        [Column(Name = "created", ServerTime = DateTimeKind.Local, CanUpdate = false, DbType = "datetime(0) NOT NULL")]
        [JsonProperty("created")]
        public DateTime CreateTime { get; set; }

        [Column(Name = "updated", ServerTime = DateTimeKind.Local, DbType = "datetime(0) NOT NULL")]
        [JsonProperty("updated")]
        public DateTime UpdateTime { get; set; }
    }
}
